package ai.people.netmon.telegram.service;

import ai.people.netmon.framework.domain.telegram.entity.Channels;
import ai.people.netmon.telegram.domain.request.channels.ChannelsRequest;
import ai.people.netmon.framework.model.response.PageResponse;

/**
 * 管理系统-电报服务
 *
 * @author yuanqinglong
 * @since 2022/1/6 17:07
 */
public interface ManageChannelsService {


    /**
     * 添加群组
     *
     * @param channels 群组
     * @return int
     */
    int addChannel(Channels channels);

    /**
     * 修改群组
     *
     * @param channels 群组
     * @return int
     */
    int updateChannel(Channels channels);


    /**
     * 通过id
     *
     * @param id id
     * @return {@link Channels}
     */
    Channels selectById(Long id);

    /**
     * 分页查询群组
     *
     * @param channelsConditions 查询条件
     * @return {@link PageResponse}<{@link Channels}>
     */
    PageResponse<Channels> selectChannelsPage(ChannelsRequest channelsConditions);


    /**
     * 退出群组
     *
     * @param id id
     * @return boolean
     */
    int exitChannels(Long id);



}
